package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 摇号公示明细表
 *
 * @author wangt
 * @since 2024-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_lottery_announcement_detail")
@Schema(name = "EduLotteryAnnouncementDetail", title = "摇号公示明细表", description = "摇号公示明细表实体类")
public class EduLotteryAnnouncementDetail extends Model<EduLotteryAnnouncementDetail> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "lotteryAnnouncementDetailId", description = "人员明细id")
    @TableId(value = "lottery_announcement_detail_id", type = IdType.ASSIGN_ID)
    private Long lotteryAnnouncementDetailId;

    @Schema(name = "lotteryAnnouncementId", description = "摇号公示id")
    @TableField(value = "lottery_announcement_id")
    private Long lotteryAnnouncementId;

    @Schema(name = "applyId", description = "报名编号")
    @TableField(value = "apply_id")
    private String applyId;

    @Schema(name = "fullNameTm", description = "姓名脱敏")
    @TableField(value = "full_name_tm")
    private String fullNameTm;

    @Schema(name = "idcardTm", description = "身份证脱敏")
    @TableField(value = "idcard_tm")
    private String idcardTm;

    @Schema(name = "serialNum", description = "摇号序号")
    @TableField(value = "serial_num")
    private Integer serialNum;

    @Schema(name = "schoolId", description = "学校")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolName", description = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "aspirationType", description = "第几志愿")
    @TableField(value = "aspiration_type")
    private String aspirationType;

    @Schema(name = "schoolCategory", description = "学段")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "schoolNature", description = "选择学校办别0.公办 1.民办")
    @TableField(value = "school_nature")
    private String schoolNature;

    @Schema(name = "year", description = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "configTypeName", description = "招生计划类别")
    @TableField(value = "config_type_name")
    private String configTypeName;

    @Schema(name = "configName", description = "招生类别")
    @TableField(value = "config_name")
    private String configName;

    @Override
    public Serializable pkVal() {
        return this.lotteryAnnouncementDetailId;
    }
}
